{extend name="public/base" /}
{block name="title"}{$article.title} - {$sysInfo.webname}{/block} 
{block name="keywords"}{$article.keywords ?: $article.title}{/block}
{block name="description"}{$article.title},{$article.description ?? ''}{/block}
{block name="ogtitle"}<meta property="og:title" content="{$article.title} - {$sysInfo.webname}">{/block}
{block name="ogdescription"}<meta property="og:description" content="{$article.title},{$article.description ?? ''}" />{/block}
{block name="meta"}
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="{$article.create_time|date='c'}"/>
<meta property="bytedance:published_time" content="{$article.create_time|date='c'}" />
<meta property="bytedance:updated_time" content="{$article.update_time|date='c'}" />
{/block}
{block name="link"} {/block}
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}

{block name="content"}
<div class="layui-container article-content">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md12 content detail">
			<div class="fly-panel detail-box">
				<h1 style="margin:10px 5px 15px 5px; text-align: center;">{article:title}</h1>

				{//作者}
				<div class="detail-about" style="text-align:center">
					<div class="detail-hits" style="left:-30px;">
						<span>{$article.cate.catename}</span>
						<span>{$article.user.name}</span>
						<span class="post-time" style="padding-top: 5px;" data="{$article.update_time}">{article:uptime /} </span>
						<span><i class="iconfont" title="浏览">&#xe60b;</i> {article:pv /}</span>
					</div>
				</div>
				<hr style="margin-bottom: 25px">

				{// 内容}
				{:hook('taoplayerdiv')}
				<div class="detail-body photos" style="font-size: 18px;line-height: 200%;" id="content">
					{$article.content|raw}
				</div>

				<div style="margin-top: 15px">标签
				{article:tag}
				<a href="{$tag.url}"><span class="layui-btn layui-btn-xs layui-btn-normal  layui-btn-radius"># {$tag.name}</span></a>
				{/article:tag}
				</div>

				<div style="margin: 20px 0px 15px 0px; color: rgb(130, 125, 125);">
					<p style="line-height:200%;">{$sysInfo.state|raw}</p>
				</div>
				<div style="margin-top: 20px;">本文链接：
					<a href="{article:url /}">{article:url /}</a>
				</div>
			</div>
		</div>
    {//crud管理模块}
    {include file="/public/crud" /}
  </div>
<!--底部栏-->
	<!-- <div class="site-tree-mobile-detail-bottom layui-hide-md">
		<div id="LAY_jieAdmin1" data-id="{$article['id']}"></div>
  </div>  -->
</div>
{include file="public/menu" /}

{/block}

{block name="script"}
<script>
	var collectionFind    = "{:url('Collection/find')}",
	collection          = "{:url('collection/')}",
	articleJieset       = "{:url('Article/jieset')}",
	articleDelete       = "{:url('Article/delete')}",
	commentJiedaZan     = "{:url('Comment/jiedaZan')}",
	commentJiedaCai     = "{:url('Comment/jiedaCai')}",
	commentGetDa        = "{:url('Comment/getDa')}",
	commentUpdateDa     = "{:url('Comment/updateDa')}",
	commentJiedaDelete  = "{:url('Comment/jiedaDelete')}",
	langCollection      = "{:lang('collection')}",
	langCancelCollection = "{:lang('cancel collection')}";
	
</script>
{/block}